import { Module } from '@nestjs/common';
import { CommitService } from './commit.service';
import { CommitController } from './commit.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { CommitInfoSchema } from '../schema/Commit/index';
import { AssemblySchema } from '../schema/ClientHome/home.schema';
import { LogInfoSchema } from '../schema/Commit/index';
import { AidInfoSchema } from '../schema/Commit/index';
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'Commit', schema: CommitInfoSchema },
      { name: 'Assembly', schema: AssemblySchema },
      { name: 'Log', schema: LogInfoSchema },
      { name: 'Aid', schema: AidInfoSchema },
    ]),
  ],
  controllers: [CommitController],
  providers: [CommitService],
})
export class CommitModule {}
